package cn.lsp.sharkmall.common;

/**
 * @Description:
 * @Author: sweeterjava@163.com
 * @Date: 2023/2/12
 * @Time: 22:34
 */
public class MallException extends RuntimeException {
    public MallException() {
    }

    public MallException(String message) {
        super(message);
    }

    /**
     * 丢出一个异常
     *
     * @param message
     */
    public static void fail(String message) {
        throw new MallException(message);
    }

}
